package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Foodbatchadditive;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface FoodbatchadditiveDAO extends JpaDao<Foodbatchadditive> {

	public Foodbatchadditive findFoodbatchadditiveById(Integer id) throws DataAccessException;

	public Foodbatchadditive findFoodbatchadditiveById(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByName(String name) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByName(String name, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByNameContaining(String name_1) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByContent(String content) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByContent(String content, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByContentContaining(String content_1) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByContentContaining(String content_1, int startResult,
			int maxRows) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByDescription(String description) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByDescriptionContaining(String description_1)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditiveByDescriptionContaining(String description_1, int startResult,
			int maxRows) throws DataAccessException;

	public Foodbatchadditive findFoodbatchadditiveByPrimaryKey(Integer id) throws DataAccessException;

	public Foodbatchadditive findFoodbatchadditiveByPrimaryKey(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditivesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Foodbatchadditive> findAllFoodbatchadditives() throws DataAccessException;

	public Set<Foodbatchadditive> findAllFoodbatchadditives(int startResult, int maxRows) throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditivesByAdditive(Integer additiveId, int start, int max);

	public Set<Foodbatchadditive> findFoodbatchadditivesByFoodbatch(Integer foodbatchId, int start, int max);

	public Set<Foodbatchadditive> findFoodbatchadditiveByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodbatchadditive> findFoodbatchadditivesByDetachedCriteria(CmiPagination page)
			throws DataAccessException;

	public Foodbatchadditive findFoodbatchadditiveByPhysicalPrimaryKey(Integer foodbatchId, Integer additiveId,
			String content) throws DataAccessException;

	public Foodbatchadditive findFoodbatchadditiveByPhysicalPrimaryKey(Integer foodbatchId, Integer additiveId,
			String content, int startResult, int maxRows) throws DataAccessException;
}
